

        <g:set var="entityName" value="${message(code: 'term.label', default: 'Term')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <th><g:message code="term.school.label" default="School" /></th>
                   	    
                            <g:sortableColumn property="term" title="${message(code: 'term.term.label', default: 'Term')}" />
                        
                            <g:sortableColumn property="startTime" title="${message(code: 'term.startTime.label', default: 'Start Time')}" />
                        
                            <g:sortableColumn property="endTime" title="${message(code: 'term.endTime.label', default: 'End Time')}" />
                        
                            <g:sortableColumn property="year" title="${message(code: 'term.year.label', default: 'Year')}" />
                        
                            <g:sortableColumn property="description" title="${message(code: 'term.description.label', default: 'Description')}" />
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${termInstanceList}" status="i" var="termInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${termInstance.id}">${fieldValue(bean: termInstance, field: "school")}</g:link></td>
                        
                            <td>${fieldValue(bean: termInstance, field: "term")}</td>
                        
                            <td><g:formatDate date="${termInstance.startTime}" /></td>
                        
                            <td><g:formatDate date="${termInstance.endTime}" /></td>
                        
                            <td>${fieldValue(bean: termInstance, field: "year")}</td>
                        
                            <td>${fieldValue(bean: termInstance, field: "description")}</td>
                            <td class="operate">
                            <x:operate width="100">
                                <g:link action="edit" id="${termInstance.id}"><g:message code="default.button.edit.label" /></g:link> | 
                                <g:link action="delete" id="${termInstance.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message')}');"><g:message code="default.button.delete.label" /></g:link>
                               </x:operate>
                            </td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${termInstanceTotal}" />
            </div>
